package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelOrderOperationMapper;
import com.ktgj.hotel.domain.HotelOrderOperation;
import com.ktgj.hotel.service.IHotelOrderOperationService;

/**
 * 酒店订单信息操作Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelOrderOperationServiceImpl implements IHotelOrderOperationService 
{
    @Autowired
    private HotelOrderOperationMapper hotelOrderOperationMapper;

    /**
     * 查询酒店订单信息操作
     * 
     * @param operationid 酒店订单信息操作ID
     * @return 酒店订单信息操作
     */
    @Override
    public HotelOrderOperation selectHotelOrderOperationById(Long operationid)
    {
        return hotelOrderOperationMapper.selectHotelOrderOperationById(operationid);
    }

    /**
     * 查询酒店订单信息操作列表
     * 
     * @param hotelOrderOperation 酒店订单信息操作
     * @return 酒店订单信息操作
     */
    @Override
    public List<HotelOrderOperation> selectHotelOrderOperationList(HotelOrderOperation hotelOrderOperation)
    {
        return hotelOrderOperationMapper.selectHotelOrderOperationList(hotelOrderOperation);
    }

    /**
     * 新增酒店订单信息操作
     * 
     * @param hotelOrderOperation 酒店订单信息操作
     * @return 结果
     */
    @Override
    public int insertHotelOrderOperation(HotelOrderOperation hotelOrderOperation)
    {
        return hotelOrderOperationMapper.insertHotelOrderOperation(hotelOrderOperation);
    }

    /**
     * 修改酒店订单信息操作
     * 
     * @param hotelOrderOperation 酒店订单信息操作
     * @return 结果
     */
    @Override
    public int updateHotelOrderOperation(HotelOrderOperation hotelOrderOperation)
    {
        return hotelOrderOperationMapper.updateHotelOrderOperation(hotelOrderOperation);
    }

    /**
     * 批量删除酒店订单信息操作
     * 
     * @param operationids 需要删除的酒店订单信息操作ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderOperationByIds(Long[] operationids)
    {
        return hotelOrderOperationMapper.deleteHotelOrderOperationByIds(operationids);
    }

    /**
     * 删除酒店订单信息操作信息
     * 
     * @param operationid 酒店订单信息操作ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderOperationById(Long operationid)
    {
        return hotelOrderOperationMapper.deleteHotelOrderOperationById(operationid);
    }
}
